package com.cr.admin.business.store.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class StoreSaveParam {

    //门店名称
    @NotEmpty(message = "门店名称不能为空")
    @ApiModelProperty(value = "门店名称", required = true)
    String name;
    //门店地址
    @NotEmpty(message = "门店地址不能为空")
    @ApiModelProperty(value = "门门店地址", required = true)
    String address;
    //开店时间
    @NotEmpty(message = "开店时间不能为空")
    @ApiModelProperty(value = "开店时间", required = true)
    String openTime;
    //关闭时间
    @NotEmpty(message = "关闭时间不能为空")
    @ApiModelProperty(value = "关闭时间", required = true)
    String closeTime;
    //所在城市id
    @NotNull(message = "所在城市id不能为空")
    @ApiModelProperty(value = "所在城市id", required = true)
    Long cityId;
}
